package com.lanou.bean;

import java.util.List;

/**
 * Created by dllo on 18/2/26.
 */
public class PageBean<B> {
    private Integer currentPage;//当前页码
    private Integer totalPage;//总页数
    private List<Blog> blist;
    private List<User> uList;
    private int id;
    public PageBean(){

    }

    public PageBean(Integer currentPage, Integer totalPage, List<Blog> blist, List<User> uList, int id) {
        this.currentPage = currentPage;
        this.totalPage = totalPage;
        this.blist = blist;
        this.uList = uList;
        this.id = id;
    }

    public PageBean(Integer currentPage, Integer totalPage, List<Blog> blist) {
        this.currentPage = currentPage;
        this.totalPage = totalPage;
        this.blist = blist;
    }

    public PageBean(Integer currentPage, Integer totalPage, List<User> uList, int id) {
        this.currentPage = currentPage;
        this.totalPage = totalPage;
        this.uList = uList;
        this.id = id;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public List<Blog> getBlist() {
        return blist;
    }

    public void setBlist(List<Blog> blist) {
        this.blist = blist;
    }

    public List<User> getuList() {
        return uList;
    }

    public void setuList(List<User> uList) {
        this.uList = uList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "currentPage=" + currentPage +
                ", totalPage=" + totalPage +
                ", blist=" + blist +
                ", uList=" + uList +
                ", id=" + id +
                '}';
    }

}
